import { IsNotEmpty, IsNumberString, IsString } from "class-validator"

export class getAdvDto {

    @IsNotEmpty()
    @IsNumberString()
    readonly pageNo: number | string

    @IsNotEmpty()
    @IsNumberString()
    readonly pageSize: number | string

}

export class deleteAdvDto {

    @IsNotEmpty()
    @IsString()
    readonly id: string
}


export class updateAdvDto extends deleteAdvDto {

    /* 跳转url */
    @IsNotEmpty()
    @IsString()
    readonly url: string

}